package net.caidingke.shepherd.domain.user.finder;

import io.ebean.Finder;
import net.caidingke.shepherd.domain.user.Permission;
import net.caidingke.shepherd.domain.user.query.QPermission;

/**
 * @author bowen
 */
public class PermissionFinder extends Finder<Long, Permission> {

    /**
     * Construct using the default EbeanServer.
     */
    public PermissionFinder() {
        super(Permission.class);
    }

    /**
     * Construct with a given EbeanServer.
     */
    public PermissionFinder(String serverName) {
        super(Permission.class, serverName);
    }

    /**
     * Start a new typed query.
     */
    public QPermission where() {
        return new QPermission(db());
    }

    /**
     * Start a new document store query.
     */
    public QPermission text() {
        return new QPermission(db()).text();
    }

}
